using System.Collections.Generic;

namespace AppFuscator.MapDecoder
{
    public class Module : BaseNode<Assemble, Module>, ITypelistHolder
    {
        public List<Type> TypeList { get; set; }

        public string AssembleName { get { return Parent.Name; } set { } }

        public Type DefaultType
        {
            get
            {
                return TypeList[0];
            }
        }

        public Module(string name, Assemble parent, Module nodeLink)
            : base(name, parent, nodeLink)
        {
            TypeList = new List<Type>();
        }

        public void AddType(Type temp)
        {
            TypeList.Add(temp);
        }
    }
}